<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<link rel='stylesheet' href='${rc.getContextPath()}/manage/styles/colorPicker/spectrum.css' />
<style>
.da span.error {
    position: absolute !important;
    left: 258px;
}

</style>


<form method="post" action="${rc.getContextPath()}/manage/calendarPattern/saveCalendarPattern" class=" pageForm required-validate" onsubmit="return calendarPatternJs._tsubmit(this);">
    <div class="pageContent">
        <div class="pageFormContent">
            <fieldset>
                <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (calendarPattern.calendarPatternCode)??>${calendarPattern.calendarPatternCode!''}</#if>">
                <dl>

                    <dt><@label key="calendarPatternCode.C,colon">日历模式编号：</@label></dt>
                    <dd>
                        <input class="required  alphanumeric toUp" name="calendarPatternCode" value="<#if (calendarPattern.calendarPatternCode)??>${calendarPattern.calendarPatternCode!''}</#if>" type="text" maxlength="40" readonly/>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="calendarPatternText.C,colon">日历模式描述：</@label></dt>
                    <dd>
                        <input class="required" readonly name="calendarPatternText" value="<#if (calendarPattern.calendarPatternText)??>${calendarPattern.calendarPatternText!''}</#if>" type="text" maxlength="60" />
                    </dd>
                </dl>

                <dl>
                    <dt><@label key="baseDate.C,colon">基准日期：</@label></dt>
                    <dd class='da'>
                        <input type="text" readonly class="required date" readonly="readonly" name="baseDate" dateFmt="yyyy-MM-dd" value="<#if (calendarPattern.baseDate)??>${calendarPattern.baseDate?string("yyyy-MM-dd")}</#if>"/> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                    </dd>
                </dl>
                <dl>
                    <dd>
                        <label><input disabled type="checkbox" name="lockFlag" value="1"<#if (calendarPattern.lockFlag)?? && (calendarPattern.lockFlag == 1)> checked="true"</#if>><@label key="lockFlag.C">锁定标记</@label></label>
                    </dd>
                </dl>
                <dl class="nowrap">
                    <dd>

                        <div class="panel" currentIndex="0" eventType="click" style="width: 605px; margin: 0;">
                            <h1><@label key="project.C">项目</@label></h1>
                            <div>
                                <table id="itemTable" class="table border canopration" width="610px" layoutH="200">
                                    <thead>
                                            <tr>        
                                                <th width="180"><@label key="serialNumber.C">序号</@label></th>
                                                <th width="190"><@label key="days.C">天数</@label></th>
                                                <th width="200"><@label key="dayType.C">日类型</@label></th>
                                            </tr>
                                        </thead>
                                        <tbody id="itemTbody">
                                        <#if calendarPattern.items??&&(calendarPattern.items?size>0) >
                                         <#list calendarPattern.items as item>
                                        <tr style='height: 30px'>
                                            <td >${item.ordinal}</td>
                                            <td>${item.days}</td>
                                            <td>
                                            <#if item.dayTypeCode??>
                                            ${item.dayTypeCode!''}-${item.dayTypeText!''}
                                            </#if>
                                            </td>
                                        </tr>
                                        </#list>
                                         </#if>
                                        </tbody>
                                    </table>
                            </div>
                        </div>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if (material.materialCode)??> <#assign createInfo=material/> <#include "/common/createInfo.html"> </#if>
        <div class="formBar">
            <ul>
                        <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </div>
</form>


